package lab02.test12;

public class Test12 {
    public static void main(String[] args) {
        Circle c1=new Circle();
        c1.raduis=1.0;
        System.out.println("半径为1.0的圆的面积："+c1.area());
        System.out.println("半径为1.0的圆的周长："+c1.perimeter());

        Rectangular r1=new Rectangular();
        r1.height=1.0;
        r1.width=2.0;

        System.out.println("矩形的面积为："+r1.area());
        System.out.println("矩形的周长为："+r1.perimeter());
    }
}
